<template>
  <div id="content">
    <h2 @click="showName">学生姓名：{{name}}</h2>
    <h2>学生性别：{{sex}}</h2>
  </div>
</template>

<script>
// import {mixin,a} from '../mixin.js'
export default {
  name: 'student',
  data () {
    return {
     name :'蒋涛',
     sex:'男'
    }
  },
  methods: {
    
  },
  mounted () {
    console.log("组件内mounted")
  },
  // mixins:[mixin,a]
}
</script>

<style scoped>
   *{
     margin: 0;
     padding: 0;
     border: 0;
   }
  #content{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    display: flex;
    flex-flow: column wrap;
  }
</style>
